package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.ViewRoomrecMapper;
import com.ruoyi.system.domain.ViewRoomrec;
import com.ruoyi.system.service.IViewRoomrecService;

/**
 * VIEWService业务层处理
 * 
 * @author ruoyi
 * @date 2021-12-04
 */
@Service
public class ViewRoomrecServiceImpl implements IViewRoomrecService 
{
    @Autowired
    private ViewRoomrecMapper viewRoomrecMapper;

    /**
     * 查询VIEW
     * 
     * @param roomId VIEW主键
     * @return VIEW
     */
    @Override
    public ViewRoomrec selectViewRoomrecByRoomId(Long roomId)
    {
        return viewRoomrecMapper.selectViewRoomrecByRoomId(roomId);
    }

    /**
     * 查询VIEW列表
     * 
     * @param viewRoomrec VIEW
     * @return VIEW
     */
    @Override
    public List<ViewRoomrec> selectViewRoomrecList(ViewRoomrec viewRoomrec)
    {
        return viewRoomrecMapper.selectViewRoomrecList(viewRoomrec);
    }

    /**
     * 新增VIEW
     * 
     * @param viewRoomrec VIEW
     * @return 结果
     */
    @Override
    public int insertViewRoomrec(ViewRoomrec viewRoomrec)
    {
        return viewRoomrecMapper.insertViewRoomrec(viewRoomrec);
    }

    /**
     * 修改VIEW
     * 
     * @param viewRoomrec VIEW
     * @return 结果
     */
    @Override
    public int updateViewRoomrec(ViewRoomrec viewRoomrec)
    {
        return viewRoomrecMapper.updateViewRoomrec(viewRoomrec);
    }

    /**
     * 批量删除VIEW
     * 
     * @param roomIds 需要删除的VIEW主键
     * @return 结果
     */
    @Override
    public int deleteViewRoomrecByRoomIds(Long[] roomIds)
    {
        return viewRoomrecMapper.deleteViewRoomrecByRoomIds(roomIds);
    }

    /**
     * 删除VIEW信息
     * 
     * @param roomId VIEW主键
     * @return 结果
     */
    @Override
    public int deleteViewRoomrecByRoomId(Long roomId)
    {
        return viewRoomrecMapper.deleteViewRoomrecByRoomId(roomId);
    }
}
